<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>交互平台管理</title>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">  
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">  
<META HTTP-EQUIV="Expires" CONTENT="0"> 
<%@include file="../../include/include.jsp"%>
<link rel="stylesheet" type="text/css" href="${csspath}/public.css"/>
<link rel="stylesheet" type="text/css" href="${csspath}/validationEngine.jquery.css"/>
<script src="${jspath}/jquery/jquery-1.4.4.js" type="text/javascript"></script>
<script src="${jspath}/jquery/jquery.ui.min.js" type="text/javascript"></script>
<script src="${jspath}/jquery/jquery.blockUI.js" type="text/javascript"></script>
<script src="${jspath}/public.js" type="text/javascript"></script>
<script src="${jspath}/load_layer.js" type="text/javascript" ></script>
<script src="${jspath}/jquery/validate/jquery.validationEngine.js" type="text/javascript"></script>
<script src="${jspath}/jquery/validate/jquery.validationEngine-zh.js" type="text/javascript"></script>

<script type="text/javascript"
	src="${jspath}jquery/jquery.ui.draggable.js"></script>
<script type="text/javascript"
	src="${jspath}/jquery/jquery.alerts.js"></script>
<link rel="stylesheet" type="text/css"
	href="${csspath}/jquery.alerts.css" />
	
	
<script language="javascript">
$(function() {
	$("#queryform").validationEngine();
	$(".shenpi").click(
			function() {
				var radioVal = $("input:radio:checked").val();
				if (radioVal != undefined) {
					loadLayer(this,
							"${webcontext}/dm/approval/getUserGroupApplicationDetail?applicationId="
									+ radioVal + "&brandId="+ $("#brandId").val()+ "",
							750, 500,10);
				} else {
					jAlert("请选择记录！", "验证提示");
				}
			});
});	

function search(){
	document.getElementById("queryform").submit();
}
</script>
</head>
<body>
	
	<!-- content -->
	<div id="content">
		<!-- wrap -->
		<div id="wrap">

			<!-- breadcrumb -->
			<div id="breadcrumb">
				<span>MAC审批非关键岗位人员</span>
			</div>
			<!-- /breadcrumb -->
			<!-- search_div -->
			<form:form id="queryform" name="queryform" action="${webcontext}/dm/approval/getUserGroupApplication" method="post" modelAttribute="queryApplicationDto">
			<div class="search_div">
				<div class="spliter h_10"></div>
				<table class="search_tab">
					<tr>
                    	<td class="label">经销商代码：</td>
						<td>
							<form:select path="dealerCode" cssClass="sel">
								<form:option value="" label="请选择"></form:option>
								<form:options items="${dealerCodeList}"  />
							</form:select>
						</td>
						<td class="label">员工姓名：</td>
						<td>
							<form:input path="userName" cssClass="validate[optional,length[0,90]] text"/>
						</td>
                        <td class="label">手机：</td>
						<td>
							<form:input path="mobilePhone"  cssClass="validate[custom[mobilePhoneOrNull]] text"/>
						</td>
						<!-- <td class="label">岗位：</td>
						<td>
							<form:select path="userGroupId" cssClass="sel">
								<form:option value=""></form:option>
								<form:options items="${userGroupList}" itemLabel="userGroupName" itemValue="id"/>
							</form:select>
						</td> -->
					</tr>
				</table>
                
                <div class="spliter h_5"></div>                
                <div class="btn_div">
                	<form:hidden path="approvalCategory"/>
                	<form:hidden id="brandId" path="brandId"/>
                	<form:hidden path="userGroupId"/>
                	<form:hidden path="userGroupCode"/>
                	<form:hidden path="ruleStep"/>
                	<input type="submit" class="btn" value="查询" id="save"/>
                    <input type="reset" class="btn" value="重置" id="cancel"/>
        		</div>
				<div class="spliter h_5"></div>
			</div>
			<!-- /search_div
			<core:choose>
				<core:when test="${initPage}">
					请输入查询参数
				</core:when>
				<core:when test="${resultDtoList == null || empty resultDtoList}">
					没有查询结果
				</core:when>
				<core:otherwise></core:otherwise>
			</core:choose> -->
					<div class="spliter h_10"></div>
					<!-- page_div -->
					<div class="page_div">
			            <div class="page_info">
			                  <a id="approve" class="shenpi" href="#">审批</a> 
			                  <a class="export" onclick="exportdata();">导出</a>         
			            </div> 
					  	<%@include file="../../common/headerpage.jsp"%>
					</div>
					<!-- /page_div -->
					<!-- data_div -->
					<div class="data_div">
						<table class="data_tab">
							<tr>
								<th class="w_5">选择</th>
								<th>大区</th>
								<th>MAC</th>
		                        <th>经销商简称</th>
								<th>用户ID</th>
								<th>员工姓名</th>
								<th>手机</th>
								<th>原岗位</th>
								<th>岗位</th>
								<th>类型</th>
				
							</tr>
							<core:forEach items="${resultDtoList}" var="result">
							<tr>
							  <td class="align_m"><input type="radio" name="r"  value="${result.applicationId }"/></td>
							  <td class="align_m">${result.rfsName }</td>
							  <td class="align_m">${result.macName }</td>
							  <td class="align_m">${result.dealerAbbreName }</td>
							  <td>${result.userCode }</td>
							  <td>${result.userName }</td>
							  <td>${result.mobilePhone }</td>
							  <td>${result.srcGrpName}</td>
							  <td>${result.userGroupName }</td>
							  <td>${result.operationType }</td>
							 </tr>
							</core:forEach>
						</table>
					</div>
					<!-- /data_div -->
			        <!-- page_div -->
					<div class="page_div">
						<%@include file="../../common/page.jsp"%>
					</div>
					<!-- /page_div -->
        </form:form>
		</div>
		<!-- /wrap -->
	</div>
	<!-- /content -->
  </body>
</html>